package org.example.liaoxuefeng;


import org.example.liaoxuefeng.templatemethod.AbstractSetting;
import org.example.liaoxuefeng.templatemethod.GuavaSetting;
import org.example.liaoxuefeng.templatemethod.LocalSetting;
import org.example.liaoxuefeng.templatemethod.RedisSetting;

/**
 * App entry for Maven project.
 *
 * @author liaoxuefeng
 */
public class Main {

    public static void main(String[] args) throws Exception {
        AbstractSetting setting1 = new LocalSetting();
        System.out.println("test = " + setting1.getSetting("test"));
        System.out.println("test = " + setting1.getSetting("test"));
        AbstractSetting setting2 = new GuavaSetting();
        System.out.println("guava = " + setting2.getSetting("guava"));
        System.out.println("guava = " + setting2.getSetting("guava"));
        AbstractSetting setting3 = new RedisSetting();
        System.out.println("autosave = " + setting3.getSetting("autosave"));
        System.out.println("autosave = " + setting3.getSetting("autosave"));
    }

}
